<template>
  <div class="noticeStrip">
    <div class="title">{{ title }}</div>
    <div class="time">{{ time }}</div>
  </div>
</template>

<script>
export default {
  props: ["title", "time"],
};
</script>

<style scoped>
.noticeStrip {
  border-radius: 10px;
  background-color: #f7f8fa;
  padding: 5px;
  margin: 5px;
}

.title {
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
}

.time {
  font-size: 10px;
  color: #0B0B61;
  text-align: right;
  opacity: 0.5;
}
</style>